<?php
session_start();

include_once '../../web_inc.php';
include_once ROOT_PATH.'/config/db_conn.php';
include_once './inc/gy_info_class.php';
//include_once './check_login.php';   //用户登录验证文件，正式环境下必须开启！！！测试注释掉
$del=new getInfo_gy();
$id=$_GET[id];

if($_GET[leibie]=="gy"){
	$table='gylist';
    $del_gylist2=mysql_query("delete from $table where gy_id=$id");
    $pic_sql=mysql_query("select spic from $table where id=$id");
	$pic=mysql_fetch_array($pic_sql);

	unlink("./upload/".$pic);
	$del->del($table,$id);


}

if($_GET[leibie]=="xq"){
	$table='xqlist';
}

if($_GET[leibie]=="bb"){
	$table='bb_bb';
}



